Xbasic

thread_monitor_cpu_usage Function

Syntax

V THREAD_MONITOR_CPU_USAGE(C ThreadName, N MaxCPUPercent [,N MonitorTime [,N RecoveryTime[,C LogMessage]]])

Arguments

ThreadNameCharacter

The thread name.

MaxCPUPercentNumeric

A value between 0 and 100

MonitorTimeNumeric

How often the usage is checked. Default is 5 sec.

RecoveryTimeNumeric

How long a thread remains at a lowered priority. Defaults to 300 sec.(5 min.)

LogMessageCharacter

Identifying string.

Description

Xbasic monitors CPU usage for the thread using settings provided.